package com.example.hello;

public class AnchorHref {

    private String anchorHref;

    public AnchorHref(String anchor) {
        this("", anchor);
    }

    public AnchorHref(String href, String anchor) {
        this.anchorHref = "<a " + new Href(href) + ">" + anchor + "</a>";
    }

    public String toString() {
        return anchorHref;
    }

}